package com.sumainfor.pc.dev.feign.Zfeign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.dev.fallback.Zfallback.ZpcMarketFallback;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * 调用市场部服务
 */
@FeignClient(name = "tANGNEST-PC-MARKEt", fallback = ZpcMarketFallback.class)
public interface ZpcMktFeign {


    /**
     * 根据传入参数查询不同状态下的房源
     * @param params
     * @param pager
     * @return
     */
    @ResponseBody
    @PostMapping("/key/HousingCondition/selectHousingCondition")
    JsonResult selectHousingCondition(@RequestBody Map<String,Object> params, @RequestParam("pager") Pager pager);

    /**
     * 项目下拉框
     * @return
     */
    @ResponseBody
    @PostMapping("/key/HousingCondition/getCommunityList")
    JsonResult getCommunityList(@RequestBody Map<String,Object> params);

    /**
     * 根据房源详表编号查询放房源信息
     * @param params
     * @return
     */
    @ResponseBody
    @PostMapping("/key/HousingCondition/selectHousingHouInfoId")
    JsonResult selectHousingHouInfoId(@RequestBody Map<String,Object> params);

    /**
     * 根据房源详表编号查询房源信息
     * @param params
     * @return
     */
    @ResponseBody
    @PostMapping("/key/HousingCondition/getHouInfoIdState")
    JsonResult getHouInfoIdState(@RequestBody Map<String,Object> params);
}
